package com.kk.feign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author o_o
 * @date 2022-08-04
 */
@Component
@FeignClient(value = "hystrix-payment-service")
//@FeignClient(value = "hystrix-payment-service", fallback = PaymentFallbackServiceImpl.class)
public interface PaymentService {

    /**
     * feign 实现远程调用
     *
     * @return string
     */
    @GetMapping("/hystrix/normal")
    String feign();

    /**
     * zipkin 分布式链路追踪
     * @return
     */
    @GetMapping("/zipkin")
    String zipkin();

}
